{{#each items as | item |}}
    {
    {{#eq item.itemType 'SEPERATOR'}}
        name: '{{name}}',
        itemType: 'SEPERATOR',
    {{else}}
        actionLevel: '{{actionLevel}}',
        caption: '{{caption}}',
        captionLanResTag: '{{capPSLanguageRes.lanResTag}}',
        name: '{{name}}',
        showCaption: {{showCaption}},
        tooltip: '{{tooltip}}',
        tooltipLanResTag: '{{tooltipPSLanguageRes.lanResTag}}',
        itemType: '{{itemType}}',
        showIcon: {{#if showIcon}}{{showIcon}}{{else}}false{{/if}},
        disabled: false,
        {{#eq itemType 'ITEMS'}}
        visible: true,
            {{#if psSysCss}}
        cssName: '{{psSysCss.cssName}}',
            {{/if}}
            {{#if psSysImage}}
        imagePath: '{{psSysImage.imagePath}}',
        iconCls: '{{psSysImage.cssClass}}',
            {{/if}}
        dataAccessAction: '',
        items: [{{> @macro/widgets/toolbar/toolbar-item.hbs items=psDEToolbarItems view=view toolbar=toolbar}}]
        {{else}}
            {{#if psUIAction}}
        cssName: '{{psSysCss.cssName}}{{#if psUIAction.psSysCss}} {{psUIAction.psSysCss}}{{/if}}',
                {{#if psSysImage}}
        imagePath: '{{psSysImage.imagePath}}',
        iconCls: '{{psSysImage.cssClass}}',
                {{else if psUIAction.psSysImage}}
        imagePath: '{{psUIAction.psSysImage.imagePath}}',
        iconCls: '{{psUIAction.psSysImage.cssClass}}',
                {{/if}}
        dataAccessAction: '{{psUIAction.dataAccessAction}}',
        noPrivDisplayMode: {{psUIAction.noPrivDisplayMode}},
        uiAction: {
            codeName: '{{psUIAction.codeName}}',
            uIActionMode: '{{psUIAction.uIActionMode}}',
            actionTarget: '{{psUIAction.actionTarget}}',
            uIActionTag: '{{psUIAction.uIActionTag}}',
            uIActionType: '{{psUIAction.uIActionType}}'
        },
        {{#if view.psAppViewLogics}}
            {{#each view.psAppViewLogics as | logic |}}
                {{#and logic.psViewCtrlName (eq logic.psViewCtrlName toolbar.name) (eq logic.logicType 'APPVIEWUIACTION') logic.psAppViewUIAction}}
                    {{#eq logic.name (concat toolbar.name '_' item.name '_click')}}
        logic: {
            name: '{{logic.name}}',
            actionTag: '{{#if logic.psAppViewUIAction.psUIAction}}{{logic.psAppViewUIAction.psUIAction.uIActionTag}}{{/if}}',
            xDataCtrlName: '{{logic.psAppViewUIAction.xDataControlName}}',
            {{#and logic.psAppViewUIAction.psUIAction logic.psAppViewUIAction.psUIAction.psAppDataEntity}}
            actionDECodeName: '{{logic.psAppViewUIAction.psUIAction.psAppDataEntity.codeName}}',
            {{/and}}
            predefinedType: '{{#if logic.psAppViewUIAction.psUIAction}}{{logic.psAppViewUIAction.psUIAction.predefinedType}}{{/if}}'
            {{!-- {{#if logic.psAppViewUIAction.parent}}
            parentDeName: '{{#if logic.psAppViewUIAction.parent.psAppDataEntity}}{{logic.psAppViewUIAction.parent.psAppDataEntity.psDEName}}{{/if}}',
            parentDeCodeName: '{{#if logic.psAppViewUIAction.parent.psAppDataEntity}}{{lowerCase logic.psAppViewUIAction.parent.psAppDataEntity.codeName}}{{/if}}',
            parentName: '{{logic.psAppViewUIAction.parent.name}}'
            {{/if}} --}}
        }
                    {{/eq}}
                {{/and}}
            {{/each}}
        {{/if}}
            {{else}}
                {{#if psSysImage}}
        imagePath: '{{psSysImage.imagePath}}',
        iconCls: '{{psSysImage.cssClass}}',
                {{/if}}
        cssName: '{{psSysCss.cssName}}'
            {{/if}}
        {{/eq}}
    {{/eq}}
    },
{{/each}}